package com.itheima.mongoservice;

import com.itheima.pojo.mongo.UserLike;
import com.itheima.vo.FriendPageList;

import java.util.List;
import java.util.Map;

public interface UserLikeServiceApi {
    List<UserLike> getUserInfos(Long uid);

    boolean getIsLikeExist(Long uid, Long likeUserId, boolean isLike);

    void addLikeInfo(UserLike userLike);

    List<UserLike> getLikeUserInfos(Long uid);

    /**
     * 添加粉丝喜欢
     * @param uid
     * @param id
     */
    void addUserLike(Long uid, Long id);

    /**
     * 喜欢 - 取消
     * @param uid
     * @param id
     */
    void deleteUserLike(Long uid, Long id);

    //获取互相喜欢，喜欢，粉丝数据
    Map getTotalCount(Long uid);

    //相互喜欢
    List<FriendPageList> eachPageList(Long uid, Integer page, Integer pagesize,String nickname);
    //粉丝分页
    List<FriendPageList> fanPageList(Long uid, Integer page, Integer pagesize,String nickname);
    //喜欢分页
    List<FriendPageList> likePageList(Long uid, Integer page, Integer pagesize,String nickname);

    void updateIsLike(Long uid, Long id, boolean b);

}
